package com.yuantong.xyerp.core.api.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author JianguoYin
 * @since 2021-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="User对象", description="用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "组织机构id")
    private String organizationId;

    @ApiModelProperty(value = "角色id")
    private String roleId;

    @ApiModelProperty(value = "登录账号（只能为数字）")
    private String loginName;

    @ApiModelProperty(value = "密码要求8-20位")
    private String password;

    @ApiModelProperty(value = "联系电话")
    private String mobile;

    @ApiModelProperty(value = "男1, 女0")
    private String gender;

    @ApiModelProperty(value = "职务")
    private String position;

    @ApiModelProperty(value = "职级")
    private String rank;

    @ApiModelProperty(value = "入职时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date entryDate;

    @ApiModelProperty(value = "身份证号码")
    private String sfzNo;

    @ApiModelProperty(value = "民族")
    private String nation;

    @ApiModelProperty(value = "0-未婚；1-已婚；2-离异；3-再婚；4-丧偶")
    private String marriage;

    @ApiModelProperty(value = "学历")
    private String education;

    @ApiModelProperty(value = "紧急联系人")
    private String emergencyContact;

    @ApiModelProperty(value = "紧急联系电话")
    private String emergencyMobile;

    @ApiModelProperty(value = "户籍所在地")
    private String householdRegister;

    @ApiModelProperty(value = "家庭地址")
    private String address;

    @ApiModelProperty(value = "最后一次用户数据修改时间（保存到秒）")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "0-停用；1-启用")
    private String status;

    @ApiModelProperty(value = "0-删除；1-启用")
    private String deleteStatus;
}
